<h1>
        <span class="action-span1">
		<a href="javascript:void(0);">用户管理</a>---<a href="javascript:void(0);">用户列表</a>
	</span>
	<div style="clear:both"></div>
</h1>


<div class="form-div">
    <form action="./index.php" method="get">
  	<input type="hidden" name="c" value="user">
  	<input type="hidden" name="a" value="userlist">
    <img src="./public/images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />    
     登陆名 <input type="text" name="username" size="15" value="<?=$username?>" />
      ID <input type="text" name="userID" size="15" value="<?=$userID?>" />
  <input type="submit" value=" 搜索 " class="button" />
  </form>
</div>



<!-- 用户列表 -->

  <!-- start user list -->
<div class="list-div" id="listDiv">
<table cellpadding="3" cellspacing="1">
  <tr>
    <th>ID</th>
    <th>登陆名</th>
    <th><a class="<?php if(isset($exp)): echo strtolower($exp); else: echo "desc"; endif; ?>" href="<?=$url?>&exp=<?php if(isset($exp)&& 'DESC' == $exp): echo 'ASC'; else: echo 'DESC'; endif; ?>">经验</a></th>
    <th><a class="<?php if(isset($grade)): echo strtolower($grade); else: echo "desc"; endif; ?>" href="<?=$url?>&grade=<?php if(isset($grade)&& 'DESC' == $grade): echo 'ASC'; else: echo 'DESC'; endif; ?>">等级</a></th>
    <th><a class="<?php if(isset($jetton)): echo strtolower($jetton); else: echo "desc"; endif; ?>" href="<?=$url?>&jetton=<?php if(isset($jetton)&& 'DESC' == $jetton): echo 'ASC'; else: echo 'DESC'; endif; ?>">筹码数</a></th>
    <th><a class="<?php if(isset($money)): echo strtolower($money); else: echo "desc"; endif; ?>"  href="<?=$url?>&money=<?php if(isset($money)&& 'DESC' == $money): echo 'ASC'; else: echo 'DESC'; endif; ?>">钱数</a></th>
    <th><a class="<?php if(isset($maxPayNO)): echo strtolower($maxPayNO); else: echo "desc"; endif; ?>" href="<?=$url?>&maxPayNO=<?php if(isset($maxPayNO)&& 'DESC' == $maxPayNO): echo 'ASC'; else: echo 'DESC'; endif; ?>">充值数</a></th>
    <th><a class="<?php if(isset($payNO)): echo strtolower($payNO); else: echo "desc"; endif; ?>"  href="<?=$url?>&payNO=<?php if(isset($payNO)&& 'DESC' == $payNO): echo 'ASC'; else: echo 'DESC'; endif; ?>">剩余充值数</a></th>
    <th><a class="<?php if(isset($victory)): echo strtolower($victory); else: echo "desc"; endif; ?>" href="<?=$url?>&victory=<?php if(isset($victory)&& 'DESC' == $victory): echo 'ASC'; else: echo 'DESC'; endif; ?>">胜利场数</a></th>
    <th><a class="<?php if(isset($failure)): echo strtolower($failure); else: echo "desc"; endif; ?>"  href="<?=$url?>&failure=<?php if(isset($failure)&& 'DESC' == $failure): echo 'ASC'; else: echo 'DESC'; endif; ?>">失败场数</a></th>
    <th>状态</th>
    <th>操作</th>
  </tr>
  <?php if($userList):foreach ($userList as $v ):?>
  <tr class="" style="text-align:center">
    <td><?=$v['id']?></td>
    <td><?=$v['loginName']?></td>
    <td><?=$v['exp']?></td>
    <td><?=$v['grade']?></td>
    <td><?=$v['jetton']?></td>
    <td><?=$v['money']?></td>
    <td><?=$v['maxPayNO']?></td>
    <td><?=$v['payNO']?></td>
    <td><?=$v['victory']?></td>
    <td><?=$v['failure']?></td>
    <td><?=$v['state']==1?'禁用':'正常'?></td>
    <td><a href="./index.php?c=user&a=userDetail&uid=<?=$v['id']?>">详细信息</a> |
        <a href="./index.php?c=user&a=userProps&uid=<?=$v['id']?>">道具列表</a> |
        <a href="./index.php?c=mail&a=mailList&uid=<?=$v['id']?>">邮件列表</a>|
        <a href="./index.php?c=user&a=userFriend&uid=<?=$v['id']?>">好友列表</a>|
        <a href="./index.php?c=logs&a=gamelist&uid=<?=$v['id']?>">对局日志</a>|
        <a href="./index.php?c=user&a=userState&uid=<?=$v['id']?>&state=<?=$v['state']?>" ><?=$v['state']==1?'正常':'禁用'?></a>  </td>
  </tr>
  <?php endforeach;endif;?>
  </table>
<!-- end goods list -->

<!-- 分页 -->
<?php if($page){?>
<table id="page-table" cellspacing="0">
  <tr>
    <td align="right" nowrap="true"><?=$page?></td>
  </tr>
</table>
<?php }?>
</div>